import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';


import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';
import error from '@dfeidao/atom-web/msgbox/error';
interface Aa {
	id: string;
	role_no: string;
	role_name: string;
	icon: string;
	role_type_id: string;
}
export default async function a004(fd: IFeidaoAiBrowserComponent) {

	const obj = get(fd, 'obj') as Aa;
	// const productid = get(fd, 'productid');

	if (!obj) {
		error('请选择角色！');
		return;
	}
	fire('zj-000011', 'ec-001', {
		role_no: obj.role_no,
		id: obj.id,
		role_type_id: obj.role_type_id
	});
}
